package com.yt.server.mode.patterns.proxy;

import com.yt.server.mode.api.INotification;
import com.yt.server.mode.api.IProxy;
import com.yt.server.mode.patterns.observer.Notifier;

public class Proxy extends Notifier implements IProxy {

	protected String proxyName = "Proxy";

	protected Object data = null;

	public Proxy(String proxyName, Object data) {
		if (proxyName != null) {
			this.proxyName = proxyName;
		}
		if (data != null) {
			this.data = data;
		}
	}

	public Proxy(String proxyName) {
		if (proxyName != null)
			this.proxyName = proxyName;
	}

	public Proxy() {
	}

	public String getProxyName() {
		return this.proxyName;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getData() {
		return this.data;
	}

	public void onRegister() {
	}

	public void onRemove() {
	}

	public String[] listNotificationInterests() {
		return null;
	}

	public void handleNotification(INotification notification) {
	}
}